package com.sdy.kzyy.biz.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzq
 * @since 2020-03-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class OrderRecord extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Integer id;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 订单时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date orderTime;

    /**
     * 订单人身份证号
     */
    private String orderCard;

    /**
     * 被预约的药店的区编码
     */
    private String orderStoreCode;

    /**
     * 二维码地址
     */
    private String qrcodePath;

    /**
     * 领取时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date receiveTime;

    /**
     * 领取状态 1-未领取，2-已领取
     */
    private Integer receiveStatus;

    /**
     * 订单状态 1-失效，2-有效
     */
    private Integer orderStatus;

    /**
     * token
     */
    private String token;

    /**
     * 下订单的用户id
     */
    private Integer userId;

    /**
     * 扫此订单二维码确认订单状态为已领取的商家用户id
     */
    private Integer receiveUserId;

}
